<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增文件')" />
	<th:block th:include="include :: bootstrap-fileinput-css" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-fileMsg-addD">
			<input id="id" name="id" type="hidden" th:value="${fileMsg.id}">
			<input id="parentId" name="parentId" type="hidden" th:value="${fileMsg.parentId}">
			<input id="fRepoId" name="fRepoId" type="hidden" th:value="${fileMsg.fRepoId}">

			<div class="form-group">
				<label class="col-sm-3 control-label is-required">文件夹名：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="fileName" id="fileName" required>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<th:block th:include="include :: bootstrap-fileinput-js" />
	<script th:inline="javascript">
        var prefix = ctx + "busi/file/msg";

		$("#form-fileMsg-add").fileinput({'showUpload':false, 'previewFileType':'any'});

		function submitHandler() {
			if ($.validate.form()) {
				$.operate.save(prefix + "/addDirectory", $('#form-fileMsg-addD').serialize());
			}
		}
    </script>
</body>
</html>
